package grape.workflow.rest.processinstance.vo;

import grape.common.service.trans.TransBy;
import grape.common.service.trans.impl.DatetimeTransServiceImpl;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.flowable.ui.task.model.runtime.ProcessInstanceRepresentation;

import java.util.Date;

/**
 * Created by yangwei
 * Created at 2020/6/23 14:54
 */
@Data
@EqualsAndHashCode(callSuper=false)
@ApiModel(value="流程实例数据响应原生扩展对象")
public class ProcessInstanceRepresentationVo extends ProcessInstanceRepresentation {


    @TransBy(type = DatetimeTransServiceImpl.trans_datetime,byFieldName = "started")
    @ApiModelProperty(value = "开始时间字符串")
    private String startedTxt;

    @TransBy(type = DatetimeTransServiceImpl.trans_datetime,byFieldName = "ended")
    @ApiModelProperty(value = "结束时间字符串")
    private String endedTxt;
}
